package com.travelsky.zqq.demo.controller;

import com.travelsky.zqq.demo.Service.welcome;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/zqq")
public class helloz {
    @Autowired
    welcome ws;
    @RequestMapping("/hello")
    public String Hello(@RequestParam Integer id){

        return  "welcome to ubuntu :"+ws.sayhello(id);
    }
}